injections(html): update injection queries

This commit is contained in:
Pham Huy Hoang 2023-01-19 14:07:36 +09:00 committed by Stephan Seitz
parent e6eaefe449
commit 6d4869e59d

View file

@ -1,10 +1,9 @@
; <style>...</style>
(
(style_element
(start_tag) @_no_attribute
(start_tag
(tag_name) .)
(raw_text) @css)
(#match? @_no_attribute "^\\<\\s*style\\s*\\>$")
; unsure why, but without escaping &lt; and &gt; the query breaks
)
; <style blocking> ...</style>
@ -33,9 +32,9 @@
; <script>...</script>
(
(script_element
(start_tag) @_no_attribute
(start_tag
(tag_name) .)
(raw_text) @javascript)
(#match? @_no_attribute "^\\<\\s*script\\s*\\>$")
)
; <script defer>...</script>