RESOLVED FIXED Bug 81822
[MutationObservers] attributeFilter should be case sensitive at all times
https://bugs.webkit.org/show_bug.cgi?id=81822
Summary [MutationObservers] attributeFilter should be case sensitive at all times
Rafael Weinstein
Reported 2012-03-21 12:14:51 PDT
The current behavior is that it is case insensitive for HTML elements in an HTML document. This should be removed as it is inconsistent with the spec.
Attachments
Patch (7.04 KB, patch)
2012-03-21 12:18 PDT, Rafael Weinstein
no flags
Patch for landing (7.03 KB, patch)
2012-03-23 13:47 PDT, Rafael Weinstein
no flags
Rafael Weinstein
Comment 1 2012-03-21 12:18:32 PDT
Adam Klein
Comment 2 2012-03-21 12:23:47 PDT
Comment on attachment 133092 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133092&action=review thanks > Source/WebCore/dom/MutationObserverRegistration.cpp:117 > + return (m_attributeFilter.contains(attributeName)); Nit: no need for parens here.
Ojan Vafai
Comment 3 2012-03-21 12:26:26 PDT
Comment on attachment 133092 [details] Patch Was this discussed on a mailing list? Can you point to the relevant part of the spec?
Ojan Vafai
Comment 4 2012-03-21 12:34:31 PDT
Comment on attachment 133092 [details] Patch Discussed this in person with Rafael. The discussion happened on #whatwg. The summary sounds like the following to me: -Attribute names in HTML are actually all lowercase. -Legacy APIs like setAttribute, querySelector and the HTML Parser lowercase attribute names for you. -New APIs should just only accept lowercase attributes. I don't buy that argument and will bring this up again on whatwg@.
Ryosuke Niwa
Comment 5 2012-03-21 12:34:33 PDT
Comment on attachment 133092 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133092&action=review >> Source/WebCore/dom/MutationObserverRegistration.cpp:117 >> + return (m_attributeFilter.contains(attributeName)); > > Nit: no need for parens here. Yup, please fix this nit before landing it.
Rafael Weinstein
Comment 6 2012-03-23 13:47:33 PDT
Created attachment 133550 [details] Patch for landing
WebKit Review Bot
Comment 7 2012-03-23 15:09:07 PDT
Comment on attachment 133550 [details] Patch for landing Rejecting attachment 133550 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: t/git/webkit-commit-queue/Source/WebKit/chromium/v8 --revision 11102 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 47>At revision 11102. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output: http://queues.webkit.org/results/12116869
WebKit Review Bot
Comment 8 2012-03-23 17:58:24 PDT
Comment on attachment 133550 [details] Patch for landing Clearing flags on attachment: 133550 Committed r111950: <http://trac.webkit.org/changeset/111950>
WebKit Review Bot
Comment 9 2012-03-23 17:58:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.