crazypandar / marknote Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/marknote
Automatically exported from code.google.com/p/marknote
Dear all,
I need to generate jSon for unlimited sub items as in my example here:
http://jsfiddle.net/ethar1/3qn1j4qx/
What steps will reproduce the problem?
Please check http://jsfiddle.net/ethar1/3qn1j4qx/
What is the expected output?
{
"root":[
{
"id":"1",
"SubItems":[
{
"test":"First Level",
"tet":"fff",
"SubItems":[
{
"test":"Second Level",
"tet":"fff",
"SubItems":[
{
"test":"Third Level",
"SubItems":[]
}
]
}
]
},
{
"test":"First Level",
"tet":"xxxxx",
"SubItems":[
]
}
]
},
{
"id":"2",
"SubItems":[
]
}
]
}
What do you see instead?
{
"root": [
{
"id": "1",
"SubItems": [
{
"test": "First Level",
"tet": "fff",
"SubItems": []
},
{
"test": "First Level",
"tet": "xxxxx",
"SubItems": []
}
]
},
{
"id": "2",
"SubItems": []
}
]
}
What version of the product are you using? On what operating system?
the latest version + windows
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 1 Nov 2014 at 11:08
What steps will reproduce the problem?
1. Attempt to parse an XML file that contains a single quote / apostrophe
within the CDATA, eg
http://open.live.bbc.co.uk/weather/feeds/en/6943075/3dayforecast.rss (note the
apostrophe in "St Martin's")
What is the expected output? What do you see instead?
Expect to see the XML parsed properly. Get an error.
What version of the product are you using? On what operating system?
Current version, on Ubuntu
Please provide any additional information below.
The attached patch seems to resolve the issue.
Original issue reported on code.google.com by [email protected]
on 15 Jun 2014 at 8:10
Attachments:
<b>What steps will reproduce the problem?</b>
Parse the following xml:
<And>
<One>
<Two />
</One>
<And>
<Three>
<Four />
</Three>
</And>
</And>
<b>What is the expected output? What do you see instead?</b>
When you do a .toString() on the document you should see the same xml as above,
however, the following xml is produced:
<And>
<One>
<Two />
</One>
<And />
</And>
<b>What version of the product are you using? On what operating system?</b>
0.5.1 - Windows 7
<b>Please provide any additional information below.</b>
The issue is in the marknote.Parser.prototype.parseElement() function, I've
attached a modified version of this function which fixes the issue.
Original issue reported on code.google.com by [email protected]
on 1 Jul 2014 at 12:18
Attachments:
What steps will reproduce the problem?
Sample, execute in google chrome browser console:
var doc = new marknote.Parser().parse("<a></a>");
doc.getRootElement().setText("SELECT '1'");
doc.toString();
What is the expected output?
"<a>SELECT '1'</a>"
What do you see instead?
"<a>SELECT '1'</a>"
What version of the product are you using? On what operating system?
0.5.1, windows server 2012, chrome latest build
Please provide any additional information below.
I am working on a project with lots of sql and js as text in xml, they contain
" and '. It would be nice to have some kind of switch to turn of erefEncode for
setText methods, because some server-side serializers do not convert '
back to '. And I simply cannot use CDATA.((
Original issue reported on code.google.com by [email protected]
on 2 Dec 2014 at 4:54
Thanks for creating Marknode, it seems really useful and easy to use. I came
across a problem, though.
It seems Marknote has trouble parsing mixed content (= mixture of text nodes
and element nodes). Example:
var str="<gloss>This is <em>a</em> test.</gloss>";
var parser=new marknote.Parser();
var doc=parser.parse(str);
console.log(doc.toString());
Outputs this:
<gloss>This is <em>a</em></gloss>
Should output this:
<gloss>This is <em>a</em> test.</gloss>
This woud be nice to fix as it is the only thing stopping me from using
Marknode in a project I'm working on! :-)
Original issue reported on code.google.com by [email protected]
on 9 Feb 2013 at 6:37
What steps will reproduce the problem?
1. Browser gets hanged for every ajax request fired using VPN Link. For normal
access (i.e., inside domain), there is no issue for the same.
What is the expected output? What do you see instead?
Browser hangs for every AJAX request. This happens in Mozilla,IE and Chrome.
Browser gets hanged even for a normal AJAX responseText request.
What version of the product are you using? On what operating system?
marknote version 0.5.1. On windows 7:
IE:8,9
FireFox: 21
Chrome: 26
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Jul 2013 at 10:10
Running with Marknote 0.5.1 debug and adding a text to field containing danish
letters å works fine. Switching to non debug mode, then i gets escaped to
å in mark note
Original issue reported on code.google.com by [email protected]
on 14 Oct 2013 at 10:39
[deleted issue]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.