Closed Bug 1886209 Opened 2 years ago Closed 2 years ago

Is `[StringContext=Trusted...]` support required for `ObservableArray`s?

Categories

(Core :: DOM: Security, task)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: mbrodesser, Unassigned)

References

(Blocks 1 open bug)

Details

The comment in DocumentOrShadowRoot.webidl is just obsolete (since bug 1766227).

If the question is whether T in ObservableArray<T> can possibly be a string with [StringContext], then I think we shouldn't support that for now no matter what (and probably throw an error from the parser if someone does that).

I'm not sure opening a bug is the best way to ask us questions like this.

Flags: needinfo?(smaug)

I think this covered in the spec by The [StringContext] extended attribute may only annotate a type of a regular attribute or a regular operation argument. So I'm reading that as the immediate type of the attribute or argument, not an inner type of it.

(In reply to Peter Van der Beken [:peterv] from comment #1)

The comment in DocumentOrShadowRoot.webidl is just obsolete (since bug 1766227).

If the question is whether T in ObservableArray<T> can possibly be a string with [StringContext], then I think we shouldn't support that for now no matter what (and probably throw an error from the parser if someone does that).

I'm not sure opening a bug is the best way to ask us questions like this.

Which alternative channel do you prefer?

Edit: feel free to let me know via e-mail.

(In reply to Peter Van der Beken [:peterv] from comment #2)

I think this covered in the spec by The [StringContext] extended attribute may only annotate a type of a regular attribute or a regular operation argument. So I'm reading that as the immediate type of the attribute or argument, not an inner type of it.

Agreed. Thanks for pointing that out.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.