aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation/var/rtagName.js
blob: 7435620c1914746013ff25fbb037836d94956294 (plain)
1
2
3
4
5
6
7
8
define( function() {
	"use strict";

	// rtagName captures the name from the first start tag in a string of HTML
	// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
	// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
	return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
} );