From a74320fca8bb0a2190f6e1fdb71a73733b6986e4 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 5 May 2015 11:44:55 -0700 Subject: Manipulation: privatize buildFragment() function Fixes gh-2224 --- src/manipulation/var/rscriptType.js | 3 +++ src/manipulation/var/rtagName.js | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/manipulation/var/rscriptType.js create mode 100644 src/manipulation/var/rtagName.js (limited to 'src/manipulation/var') diff --git a/src/manipulation/var/rscriptType.js b/src/manipulation/var/rscriptType.js new file mode 100644 index 000000000..60ef70ac8 --- /dev/null +++ b/src/manipulation/var/rscriptType.js @@ -0,0 +1,3 @@ +define(function() { + return ( /^$|\/(?:java|ecma)script/i ); +}); diff --git a/src/manipulation/var/rtagName.js b/src/manipulation/var/rtagName.js new file mode 100644 index 000000000..cd0b768e0 --- /dev/null +++ b/src/manipulation/var/rtagName.js @@ -0,0 +1,3 @@ +define(function() { + return ( /<([\w:-]+)/ ); +}); -- cgit v1.2.3