No subject


Mon Jan 28 08:41:14 PST 2013


If you say HTML5 allows more error-compatible parsing, then it should allows more loose name-id attribute matching, by the same principle?

So my thought:
(1)<img>'s usemap first matches <map>'s name, if there are multiple <map>'s with the same name, match the first;
(2)Then if no <img> with the matched name, match against id. if there are multiple <map>'s with the same id, match the first;
This would be more consistent and shows the clarity.

The first modification in patch will violate the above rule:
  <img usemap="#b" .../> 
  <map name="a" id="b" .../> 
  <map name="b" id="c" .../> 
The `keyMatchesMapNameOrId` will cause the first <map> matched, while it may be better the second <map>.

Or just modifier the parse? It'll be more simple: if <map> has no name but id, just add a name according to id.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list