Spin off of Alexey's comment on bug 67586: https://bugs.webkit.org/show_bug.cgi?id=67586#c34
Created attachment 123049 [details] Patch
Created attachment 125768 [details] Patch
Comment on attachment 125768 [details] Patch Basically looks good. Maybe we could have test with removeAttribute().
Comment on attachment 125768 [details] Patch Thanks for the review. I've put a revised patch at bug 80658 since it doesn't deal with SVG at all.
(In reply to comment #4) > (From update of attachment 125768 [details]) > Thanks for the review. I've put a revised patch at bug 80658 since it doesn't deal with SVG at all. So is it OK to close this?
I was planning to keep this bug open as it includes adding tests for SVG, which hasn't been worked on yet, and treat bug 80658 as a subtask of it.
fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml is often flakey: http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK1%20(Tests)/r146151%20(6480)/fast/css/lang-mapped-to-webkit-locale-dynamic-pretty-diff.html
I believe the remaining task here is adding tests for mapping of lang/xml:lang to -webkit-locale when lang/xml:lang was set in SVG.