Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Issue 1305213005: Correct handling of |for| and |event| attributes of script elements. (Closed)

Created:
5 years, 3 months ago by tkent
Modified:
5 years, 3 months ago
Reviewers:
kochi
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Correct handling of |for| and |event| attributes of script elements. https://html.spec.whatwg.org/multipage/scripting.html#script-processing-for > 12. If the script element has an event attribute and a for attribute, then run > these substeps: Our implementation was "... has a non-empty event attribute and a non-empty for attribute, ...". This CL corrects isEmpty() checks to isNull(). The new behavior is compatible with IE and Firefox. BUG=520844 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201627

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/ScriptLoader.cpp View 1 chunk +7 lines, -9 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
tkent
kochi@, would you review this please? https://codereview.chromium.org/1305213005/diff/1/Source/core/dom/ScriptLoader.cpp File Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1305213005/diff/1/Source/core/dom/ScriptLoader.cpp#newcode485 Source/core/dom/ScriptLoader.cpp:485: if (eventAttribute.isNull() || ...
5 years, 3 months ago (2015-09-02 07:37:31 UTC) #2
kochi
lgtm https://codereview.chromium.org/1305213005/diff/1/Source/core/dom/ScriptLoader.cpp File Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1305213005/diff/1/Source/core/dom/ScriptLoader.cpp#newcode485 Source/core/dom/ScriptLoader.cpp:485: if (eventAttribute.isNull() || forAttribute.isNull()) On 2015/09/02 07:37:31, tkent ...
5 years, 3 months ago (2015-09-02 07:47:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305213005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305213005/1
5 years, 3 months ago (2015-09-02 07:47:59 UTC) #5
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 08:03:14 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201627

Powered by Google App Engine
This is Rietveld 408576698