the validBlockTag() function does a long nested chain of if comparisons to C strings, which is lame. A hash lookup would be better.
Created attachment 35103 [details] patch v1
Comment on attachment 35103 [details] patch v1 What about empty string and null string? Does the contains function do the right thing for those?
Comment on attachment 35103 [details] patch v1 r=me
Created attachment 35104 [details] patch v2 Last version had a bug, as pointed out by Darin.
Comment on attachment 35104 [details] patch v2 r=me
Committed r47499: <http://trac.webkit.org/changeset/47499>