Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test_task
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дмитрий Никулин
test_task
Commits
5ee757c6
Commit
5ee757c6
authored
Feb 02, 2016
by
Dmitry Nikulin
Committed by
Dmitry
Feb 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parsingMode изменен на xml, нет эффекта
parent
5ac04cbf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
area.svg
area.svg
+0
-0
svg_dom.js
svg_dom.js
+9
-1
No files found.
area.svg
View file @
5ee757c6
This diff is collapsed.
Click to expand it.
svg_dom.js
View file @
5ee757c6
"use strict"
;
var
jsdom
=
require
(
'jsdom'
);
var
fs
=
require
(
'fs'
);
var
INPUT_URL
=
"http://download.etersoft.ru/pub/people/lav/area.svg"
var
OUTPUT_FILE
=
"area.svg"
;
var
JSDOM_CONFIG
=
{
parsingMode
:
"xml"
};
// Функция, которая вызывается по окончанию загрузки файла в DOM-модель
...
...
@@ -25,4 +30,7 @@ function loadCompleteCallback(err, window){
// Загружаем исходный файл в DOM
jsdom
.
env
(
INPUT_URL
,
loadCompleteCallback
);
jsdom
.
env
(
INPUT_URL
,
[],
// пустой массив скриптов
JSDOM_CONFIG
,
loadCompleteCallback
);
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