Giter VIP home page Giter VIP logo

htmldistiller.net's People

Contributors

mckamey avatar

Watchers

 avatar  avatar

htmldistiller.net's Issues

HTML Entities don't count toware literal character length.

Repro:
1. Parse markup with some literal text which contains long strings of 
unicode text, e.g. 
"<p>АмериканскаяфирмаПерсонaльныйспутник</p>"
2. Specify that non-ASCII chars should be encoded.
3. Attempt to force word wrapping the text at a length shorter than the 
literal string.

Actual result:
- The literal length resets when it encounters HTML entites (e.g. treats 
them similarly to tags).

Expected result:
- The literal chars should be interpreted the same as non-encoded/ASCII 
chars. (i.e. they should count toward the literal string length).

Original issue reported on code.google.com by mckamey on 14 Jul 2009 at 6:30

Occasionally less-than symbols in <script> blocks may be interpreted as tag starts

When putting less-than symbols inside <script> blocks, if it looks like a tag 
it may start 
to be parsed as a tag.

What steps will reproduce the problem?
1. parse the following: "<script>generics like 'new List<string>()' look like a 
tag to the 
parser.</script>"
2. notice during the parsing looks like a <string> tag has been parsed

What is the expected output?
- you would expect that <script> and <style> tags are treated as CDATA blocks 
and the 
contents would not be further parsed

What do you see instead?
- instead you will notice that an inner tag has been parsed and the rest of the 
flow of the 
content will adjust accordingly (respecting tag-balancing options, etc.)

Workarounds:
- place a space between the less-than character '<' and the starting word
- encode the less-than character as '&lt;'

Original issue reported on code.google.com by mckamey on 19 Sep 2009 at 12:49

HTML Entities don't count toware literal character length.

Repro:
1. Parse markup with some literal text which contains long strings of 
unicode text, e.g. 
"<p>АмериканскаяфирмаПерсонaльныйспутник</p>"
2. Specify that non-ASCII chars should be encoded.
3. Attempt to force word wrapping the text at a length shorter than the 
literal string.

Actual result:
- The literal length resets when it encounters HTML entites (e.g. treats 
them similarly to tags).

Expected result:
- The literal chars should be interpreted the same as non-encoded/ASCII 
chars. (i.e. they should count toward the literal string length).

Original issue reported on code.google.com by mckamey on 14 Jul 2009 at 6:30

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.