Giter Site home page Giter Site logo

abacus's People

Contributors

paulmansour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

abacus's Issues

HTML2DOM drops spaces before and after inner tags

 test{
     v'<p>Spaces before and after the next tags <strong><em>selection</em></strong> are dropped</p>'
     d#.Abacus.Main.HTML2DOM v
 }
      #.CAS.U.DISPLAY  (#.Abacus.Main.HTML2DOM v).Content.Content
.-----------------------------------------------------------------------------------------------.
| .--------------------------------------------------. .--------------------------. .-------. |
| | .----------------------------------------------. | | #.Abacus.Main.[Namespace] | | .---. | |
| | |Spaces before and after the next tags| | '#--------------------------' | |are dropped| | |
| | '-----------------------------------------------' |                               | '----' | |
| '∊--------------------------------------------------'                               '∊-------' |
'∊-----------------------------------------------------------------------------------------------'
      #.CAS.U.DISPLAY    (1 (#.Abacus.Main.HTML2DOM v).Content.Content).Content
.----------------.
| .------------. |
| | .--------. | |
| | |selection| | |
| | '---------' | |
| '∊------------' |
'∊----------------'

HTML2DOM converts &nbsp; to a question mark.

      Abacus.Main.HTML2DOM '<p>&nbsp;space&nbsp;</p>'
#.Abacus.Main.[Namespace]
      (Abacus.Main.HTML2DOM '<p>&nbsp;space&nbsp;</p>').Tag
p
      (Abacus.Main.HTML2DOM '<p>&nbsp;space&nbsp;</p>').Content
 ?space? 

Event bubbling can cause problem if elements are deleted.

Consider a KeyDown event listener attached to two elements, a <body> and some child <table> ("Current Targets"), and the KeyDown event fired by a key press on a <td> element (the "Target"). If this key down event deletes the contents of the table, then the <td> element no longer exists. The browser, however has processed the <body> event listener before the delete has happened in the APLDOM and the browser DOM synchronized. So when the <body> event listener is sent to the APLDOM, the expected <td> target element is not found.

In the use-case that uncovered this issue, in the higher level event handler, the target is immaterial and unreferenced anyway. This may virtually always be the case. If a lower level event handler is deleting elements, an upper level event handler should not reference them. It may be safe to simply set target to zero if not found.

Style tag content gets jumbled up.

1 - Line breaks are not preserved
2 - Character like > are converted to html &gt; equivalent

This breaks the ability to set content from a file using []NGET

Target Not Found on Rapid KeyPress event

When a keypress event deletes an element, a rapid subsequent keypress may fire on the element before it is deleted, rather than on the replacement element which really should handle it. The OnWebsocketRecieve handler thus would get an "id not found". For now we are simply ignoring this keypress event, which may be an OK solution. For automated testing though, this probably will not work. We may need a delay or a new solution of some sort.

Refactor Synce space...

...into the HTMLRenderer space, combining duplicate functions, and making all functions work on APLDOM and HTMLRenderer.

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.