Skip to content

Commit

Permalink
idl_parser: Support annotated types in IDL files
Browse files Browse the repository at this point in the history
This CL's intention is to adapt IDL files to the change of WebIDL's
specifications, to support annotated types.

Before this CL, sometimes types which are applicable to types ([Clamp],
 [EnforceRange], [TreatNullAs]) applied to non-types, even when
 specifications say otherwise.
After this CL, however, such types got to apply to types.

Actually there are still types in specifications which are applicable to types but apply to
non-types, and we'll report those bugs to the specifications.

Bug: 714866
Change-Id: I1c8a234f6ffc0c8b02681c46b32867d9f30f2097
Reviewed-on: https://chromium-review.googlesource.com/674473
Commit-Queue: Lisa Suzuki <lisabelle@google.com>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Hitoshi Yoshida <peria@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503327}
  • Loading branch information
Lisa Suzuki authored and chromium-wpt-export-bot committed Sep 21, 2017
1 parent e53e738 commit fd44cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/dom.idl
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ interface Attr : Node {

[Exposed=Window]
interface CharacterData : Node {
[TreatNullAs=EmptyString] attribute DOMString data;
attribute [TreatNullAs=EmptyString] DOMString data;
readonly attribute unsigned long length;
DOMString substringData(unsigned long offset, unsigned long count);
void appendData(DOMString data);
Expand Down

0 comments on commit fd44cda

Please sign in to comment.