diff --git a/queries/html_tags/injections.scm b/queries/html_tags/injections.scm
index 5f0719c64..23b500590 100644
--- a/queries/html_tags/injections.scm
+++ b/queries/html_tags/injections.scm
@@ -4,7 +4,7 @@
; without having this element being captured twice
(
(style_element
- (start_tag) @_no_type_lang
+ (start_tag) @_no_type_lang
(#not-match? @_no_type_lang "\\s(lang|type)\\s*\\=")
(raw_text) @css))
@@ -23,7 +23,7 @@
;
(
(script_element
- (start_tag) @_no_type_lang
+ (start_tag) @_no_type_lang
(#not-match? @_no_type_lang "\\s(lang|type)\\s*\\=")
(raw_text) @javascript))
@@ -54,3 +54,13 @@
(#offset! @javascript 0 2 0 -2))
(comment) @comment
+
+; or
+(element (_
+ (tag_name) @_tagname (#eq? @_tagname "input")
+ ((attribute
+ (attribute_name) @_attr [
+ (quoted_attribute_value (attribute_value) @regex)
+ (attribute_value) @regex
+ ] (#eq? @_attr "pattern")))
+))