For example, the element attribute (from the tag <binding>) takes a string that is a selector. Currently it is not possible to get the Selector represented by such a string. Patch will follow.
Created attachment 22121 [details] First version
Comment on attachment 22121 [details] First version I'm confused by this patch. I'm not sure what @-webkit-selector is, or what @selector even is. I've also CC'd hyatt, as he likely knows what's going on here (and can better comment if your patch is correct or not).
Comment on attachment 22121 [details] First version r=me, although remove the no-op change to QualifiedName.cpp.
This patch is not required for XBL (querySelector will do the trick) but it would enhance querySelector. Changing the bug name to match the new need.
Created attachment 22294 [details] Add CSSGrammar magic and switch querySelector to it
Created attachment 22297 [details] Same as the previous one, without the memory leak
Comment on attachment 22297 [details] Same as the previous one, without the memory leak Sorry for leading you down a bad path, but I think a better and less invasive would to be just to return an auto_ptr and not turn CSSSelector into a RefCounted object.
Created attachment 22416 [details] Updated patch: use auto_ptr
Landed in r35282.