'usemap' attribute should be ignored if it contains no '#' |
||||
Issue descriptionChrome Version: ToT OS: All but iOS What steps will reproduce the problem? (1) Open http://w3c-test.org/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference.html (2) Observe What is the expected result? The first test should succeed. What happens instead? The first test fails. Please use labels and text to provide additional information. https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-a-hash-name-reference According to the HTML standard, usemap="no-hash-name" should not work with <map name="no-hash-name">. This is an issue of blink::TreeScope::GetImageMap().
,
Oct 19
I would like to fix this issue.
,
Oct 22
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9ef9d7d626a0a44c4104e3dcb60251feaa1a5df6 commit 9ef9d7d626a0a44c4104e3dcb60251feaa1a5df6 Author: Amos Lim <eui-sang.lim@samsung.com> Date: Mon Oct 22 03:51:01 2018 Ignore 'usemap' attribute if it contains no # According to the HTML standard, usemap="no-hash-name" should not work with <map name="no-hash-name"> [1]. [1] https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-a-hash-name-reference Bug: 897025 Change-Id: Ib8ef533795e986e782a702c2562a155f59d7ce13 Reviewed-on: https://chromium-review.googlesource.com/c/1291190 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Amos Lim <eui-sang.lim@samsung.com> Cr-Commit-Position: refs/heads/master@{#601473} [modify] https://crrev.com/9ef9d7d626a0a44c4104e3dcb60251feaa1a5df6/third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/image-maps/image-map-processing-model/hash-name-reference-expected.txt [modify] https://crrev.com/9ef9d7d626a0a44c4104e3dcb60251feaa1a5df6/third_party/WebKit/LayoutTests/images/image-map-multiple-xhtml.xhtml [modify] https://crrev.com/9ef9d7d626a0a44c4104e3dcb60251feaa1a5df6/third_party/blink/renderer/core/dom/tree_scope.cc
,
Oct 22
,
Oct 22
|
||||
►
Sign in to add a comment |
||||
Comment 1 by tkent@chromium.org
, Oct 19