Skip to content

Commit accaa14

Browse files
committed
add a few more built-in tag check
1 parent 71cedfc commit accaa14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var _ = require('./index')
99
* @return {Object|undefined}
1010
*/
1111

12-
exports.commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option)$/
12+
exports.commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/
1313
exports.checkComponent = function (el, options) {
1414
var tag = el.tagName.toLowerCase()
1515
if (tag === 'component') {

0 commit comments

Comments
 (0)