The missing value default for <area shape> is 'rect'
There is no invalid value default, so the missing value default will apply in that case too. The 'Unknown' HTMLAreaElement::Shape enumeration value is no longer needed, so remove it. Also add support for the non-conforming <area shape> values: * 'circ' (alias for 'circle') * 'polygon' (alias for 'poly') * 'rectangle (alias for 'rect') Because 'rect' (and hence 'rectangle') is the same as the missing value default we don't need any explicit checks for these values. https://html.spec.whatwg.org/multipage/embedded-content.html#attr-area-shape BUG=578125 Review URL: https://codereview.chromium.org/1632133007 Cr-Commit-Position: refs/heads/master@{#371731}
Showing
Please register or sign in to comment