Open Bug 1137431 Opened 9 years ago Updated 2 years ago

webidl unions with string types could provide a convenience rebind method

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

(Blocks 1 open bug)

Details

Right now webidl union types require the following awkward syntax to set them as a string value:

  union.SetAsUSVString().Rebind(myString.Data(), myString.Length());

Its also not clear that Rebind() is what you should call since SetAsUSVString() just returns a FakeString&.

This could be made a little easier by supporting:

  union.SetAsDependentUSVString(myString);
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.