RESOLVED WONTFIX 58331
Implement experimental document.queryRules method
https://bugs.webkit.org/show_bug.cgi?id=58331
Summary Implement experimental document.queryRules method
Alexander Udalov
Reported 2011-04-12 08:57:59 PDT
Created attachment 89211 [details] patch Implement experimental document.queryRules method
Attachments
patch (5.98 KB, patch)
2011-04-12 08:57 PDT, Alexander Udalov
no flags
patch (10.36 KB, patch)
2011-05-13 07:19 PDT, Alexander Udalov
no flags
Alexander Udalov
Comment 1 2011-04-12 09:04:26 PDT
This is part of Tab's proposal at www-style, which can be found here: http://lists.w3.org/Archives/Public/www-style/2011Apr/0308.html Right now it doesn't cover the use case mentioned, because querying can be done only by valid CSS properties. Also only style rules are supported for now (it's not hard to add support for other types of rules, though). The overall implementation -- creating a document and then an element for each rule -- may seem a bit heavy-weight, so I'm glad to listen how (and if) we may improve it.
Alexander Udalov
Comment 2 2011-05-13 07:19:30 PDT
Alexey Proskuryakov
Comment 3 2011-05-13 08:57:15 PDT
This will need extensive security review. CSS object lifetime safety in WebKit is largely dependent on how objects can be accessed - we recently had a number of security bugs caused by having CSSOM extensions.
Ahmad Saleem
Comment 4 2022-07-28 12:49:04 PDT
I changed test case from patch into JSFiddle - https://jsfiddle.net/f7ex5azt/show I get error in Console across all browsers that it is queryRules is not function so I think no browser implemented it and this can be marked as "RESOLVED WONTFIX". Thanks!
Ryosuke Niwa
Comment 5 2022-07-28 13:07:29 PDT
Yeah, I don't think this experiment went anywhere. -> Won't fix.
Note You need to log in before you can comment on or make changes to this bug.