the-carlisle-group / abacus Goto Github PK
View Code? Open in Web Editor NEWHTML, CSS, and Markdown for Dyalog APL
License: MIT License
HTML, CSS, and Markdown for Dyalog APL
License: MIT License
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| | |
| | '---------' | |
| '∊------------' |
'∊----------------'
This works:
* italics *
but not this
*italics*
Implement
Get an array of element refs that contain a specific class.
|Name|Value
|--|--|
|Count|12|
|City|*Scranton*|
|Percent|**49%**|
|Name|***Abacus***|
GMF formatted
Name | Value |
---|---|
Count | 12 |
City | Scranton |
Percent | 49% |
Name | Abacus |
Abacus.Main.HTML2DOM '<p> space </p>'
#.Abacus.Main.[Namespace]
(Abacus.Main.HTML2DOM '<p> space </p>').Tag
p
(Abacus.Main.HTML2DOM '<p> space </p>').Content
?space?
Implement.
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.
1 - Line breaks are not preserved
2 - Character like > are converted to html >
equivalent
This breaks the ability to set content from a file using []NGET
The DeleteElement function removes an element in the rendered page. I'd like to remove an element from a local DOM after doing HTML2DOM.
Look at having different functions for sending back event info. For example autocomplete needs a ton of info, but clicking a button generally does not.
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.
...into the HTMLRenderer space, combining duplicate functions, and making all functions work on APLDOM and HTMLRenderer.
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.