feat(ecma): include outerHTML and innerHTML

This commit is contained in:
Benny Powers 2022-10-13 18:08:56 +03:00 committed by Amaan Qureshi
parent 248a87ef65
commit 8d2f9903f1

View file

@ -72,13 +72,14 @@
(assignment_expression
left: (member_expression
property: (property_identifier) @_prop
(#eq? @_prop "innerHTML"))
(#match? @_prop "(out|inn)erHTML"))
right: (template_string) @html
(#offset! @html 0 1 0 -1))
; el.innerHTML = '<html>'
(assignment_expression
left: (member_expression
property: (property_identifier) @_prop
(#eq? @_prop "innerHTML"))
(#match? @_prop "(out|inn)erHTML"))
right: (string) @html
(#offset! @html 0 1 0 -1))