See https://html.spec.whatwg.org/multipage/scripting.html#prepare-a-script When a script element has "for" or "event" attributes, we should not execute the script as a result of step 12. This bug was found by the newly added test: LayoutTests/http/tests/w3c/html/semantics/scripting-1/the-script-element/script-for-event.html
<rdar://problem/22588156>
Created attachment 263342 [details] Patch
Comment on attachment 263342 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=263342&action=review > Source/WebCore/dom/ScriptElement.cpp:372 > forAttribute = forAttribute.stripWhiteSpace(); Looks like this uses the wrong stripping function; should be stripLeadingAndTrailingHTMLSpaces.
Comment on attachment 263342 [details] Patch Clearing flags on attachment: 263342 Committed r191270: <http://trac.webkit.org/changeset/191270>
All reviewed patches have been landed. Closing bug.