Bug 160029 - playsInline IDL attribute has the wrong casing
Summary: playsInline IDL attribute has the wrong casing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 159283
  Show dependency treegraph
 
Reported: 2016-07-21 10:14 PDT by Domenic Denicola
Modified: 2016-07-21 19:25 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.62 KB, patch)
2016-07-21 10:33 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Chris Dumez 2016-07-21 10:17:26 PDT
Jer / Eric, what do you think? Can we simply fix the case or do we need to support both now?

I checked Firefox and Chrome but neither seems to implement this IDL attribute.
Comment 2 Domenic Denicola 2016-07-21 10:18:20 PDT
It was added 3 weeks ago so I am hopeful it can still be changed.
Comment 3 Jon Lee 2016-07-21 10:19:53 PDT
We can fix the case since it's new.
Comment 4 Radar WebKit Bug Importer 2016-07-21 10:21:35 PDT
<rdar://problem/27474031>
Comment 5 Chris Dumez 2016-07-21 10:33:27 PDT
Created attachment 284226 [details]
Patch
Comment 6 Chris Dumez 2016-07-21 10:40:45 PDT
Thanks for letting us know Domenic!
Comment 7 Chris Dumez 2016-07-21 10:55:26 PDT
Comment on attachment 284226 [details]
Patch

Clearing flags on attachment: 284226

Committed r203511: <http://trac.webkit.org/changeset/203511>
Comment 8 Chris Dumez 2016-07-21 10:55:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Darin Adler 2016-07-21 19:04:18 PDT
Comment on attachment 284226 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=284226&action=review

> Source/WebCore/html/HTMLVideoElement.idl:36
> +    [Reflect=playsinline] attribute boolean playsInline;

I’m pretty sure that Reflect already lowercases the attribute name to construct the name of the content attribute, so this "=playsinline" part is not needed.
Comment 10 Darin Adler 2016-07-21 19:05:45 PDT
Yes, it’s lowercased in this line of code:

    $contentAttributeName = lc $generator->AttributeNameForGetterAndSetter($attribute) if $contentAttributeName eq "VALUE_IS_MISSING";

Note the "lc".
Comment 11 Chris Dumez 2016-07-21 19:25:59 PDT
(In reply to comment #10)
> Yes, it’s lowercased in this line of code:
> 
>     $contentAttributeName = lc
> $generator->AttributeNameForGetterAndSetter($attribute) if
> $contentAttributeName eq "VALUE_IS_MISSING";
> 
> Note the "lc".

I did not know that, thanks for pointing this out. I will upload a patch to fix it.