GithubHelp home page GithubHelp logo

marknote's People

Contributors

jbulb avatar

marknote's Issues

Need to produce unlimited sub items

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

Incorrect handling of single quotes within CDATA

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:

Matching elements inside each other are not parsed correctly

<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:

Improvement: setText and other text things and erefEncode

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 &apos;1&apos;</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 &apos; 
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

Problem with mixed content

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

Parsing the XML in an application accessed through VPN

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.