Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | define( function() { |
2 | "use strict"; | ||||
3 | |||||
4 | // rtagName captures the name from the first start tag in a string of HTML | ||||
5 | // https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state | ||||
6 | // https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state | ||||
7 | return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); | ||||
8 | } ); |