Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
renderjs
Commits
ed4a061d
Commit
ed4a061d
authored
Nov 18, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release version 0.27.0
parent
b05c05f4
Pipeline
#24919
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2897 additions
and
4 deletions
+2897
-4
dist/renderjs-0.27.0.js
dist/renderjs-0.27.0.js
+2866
-0
dist/renderjs-latest.js
dist/renderjs-latest.js
+30
-3
package.json
package.json
+1
-1
No files found.
dist/renderjs-0.27.0.js
0 → 100644
View file @
ed4a061d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/renderjs-latest.js
View file @
ed4a061d
...
...
@@ -781,6 +781,32 @@ if (typeof document.contains !== 'function') {
ScopeError
.
prototype
=
new
Error
();
ScopeError
.
prototype
.
constructor
=
ScopeError
;
//////////////////////////////////////////
// ParserError
//////////////////////////////////////////
function
DOMParserError
(
message
)
{
this
.
name
=
"
DOMParserError
"
;
if
((
message
!==
undefined
)
&&
(
typeof
message
!==
"
string
"
))
{
throw
new
TypeError
(
'
You must pass a string for DOMParserError.
'
);
}
this
.
message
=
message
||
"
Default Message
"
;
}
DOMParserError
.
prototype
=
new
Error
();
DOMParserError
.
prototype
.
constructor
=
DOMParserError
;
//////////////////////////////////////////
// DOMParser
//////////////////////////////////////////
function
parseDocumentStringOrFail
(
string
,
mime_type
)
{
var
doc
=
new
DOMParser
().
parseFromString
(
string
,
mime_type
),
error_node
=
doc
.
querySelector
(
'
parsererror
'
);
if
(
error_node
!==
null
)
{
// parsing failed
throw
new
DOMParserError
(
error_node
.
textContent
);
}
return
doc
;
}
/////////////////////////////////////////////////////////////////
// renderJS.IframeSerializationError
/////////////////////////////////////////////////////////////////
...
...
@@ -1901,8 +1927,7 @@ if (typeof document.contains !== 'function') {
.
push
(
function
handleDataURLAjaxResponse
(
xhr
)
{
// Insert a "base" element, in order to resolve all relative links
// which could get broken with a data url
var
doc
=
(
new
DOMParser
()).
parseFromString
(
xhr
.
responseText
,
'
text/html
'
),
var
doc
=
parseDocumentStringOrFail
(
xhr
.
responseText
,
'
text/html
'
),
base
=
doc
.
createElement
(
'
base
'
),
blob
;
base
.
href
=
url
;
...
...
@@ -2200,7 +2225,7 @@ if (typeof document.contains !== 'function') {
// https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
// https://developer.mozilla.org/en-US/docs/Code_snippets/HTML_to_DOM
tmp_constructor
.
__template_element
=
(
new
DOMParser
()).
parseFromString
(
xhr
.
responseText
,
"
text/html
"
);
parseDocumentStringOrFail
(
xhr
.
responseText
,
"
text/html
"
);
parsed_html
=
renderJS
.
parseGadgetHTMLDocument
(
tmp_constructor
.
__template_element
,
url
,
...
...
@@ -2406,6 +2431,8 @@ if (typeof document.contains !== 'function') {
renderJS
.
ScopeError
=
ScopeError
;
renderJS
.
IframeSerializationError
=
IframeSerializationError
;
renderJS
.
loopEventListener
=
loopEventListener
;
renderJS
.
DOMParserError
=
DOMParserError
;
renderJS
.
parseDocumentStringOrFail
=
parseDocumentStringOrFail
;
window
.
rJS
=
window
.
renderJS
=
renderJS
;
window
.
__RenderJSGadget
=
RenderJSGadget
;
window
.
__RenderJSEmbeddedGadget
=
RenderJSEmbeddedGadget
;
...
...
package.json
View file @
ed4a061d
{
"name"
:
"renderjs"
,
"version"
:
"0.2
6
.0"
,
"version"
:
"0.2
7
.0"
,
"description"
:
"RenderJs provides HTML5 gadgets"
,
"main"
:
"dist/renderjs-latest.js"
,
"dependencies"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment