naqvis / crystal-html5 Goto Github PK
View Code? Open in Web Editor NEWCrystal implementation of HTML5-Compliant Tokenizer and Parser with XPath & CSS Selector support
License: MIT License
Crystal implementation of HTML5-Compliant Tokenizer and Parser with XPath & CSS Selector support
License: MIT License
Would it make sense to add a method like HTML5::Node#remove_attr
? Right now the only way to do it is to do
node.attr.reject! { |attr| attr.key == key_to_delete }
I'm sure you can come up with some use for it, but the way that I'm using this currently is when an option of a select is picked, the other options need to have selected
removed.
crystal-html5/spec/token_spec.cr
Line 546 in 990093e
I accidentally ran crystal tool format
without specifying which directories, and it ran on my lib/
dir ๐ It then threw this error
syntax error in '././lib/html5/spec/token_spec.cr:546:7': can't use 'key: value' syntax in a hash literal
So I just wanted to pass that along ๐
Hello,
Thanks for making this shard. It would be great if you could make the css selector just like javascript.
All the best.
https://github.com/naqvis/crystal-html5/tags
It's 0.4.0
when it should be v0.4.0
which means it's not possible to use it
Hi, I'm getting the error below when trying to use this shard.
2 | require "html5"
^
Error: can't find file 'html5'
If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?
If i use require "html"
, since the main file is html.cr
, I get:
12 | HTML5.parse(str)
^
Error: undefined constant HTML5
Did you mean 'HTML'?
If I use HTML.parse
, I get:
12 | HTML.parse(str)
^----
Error: undefined method 'parse' for HTML:Module
Maybe I'm doing something wrong. I don't have any experience with crystal.
The only way for this to work is to rename html.cr
to html5.cr
.
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.