Dennis Snell (@dmsnell23) profile picture
Joined December 2013
Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)Photo by Dennis Snell (@dmsnell23)
Replying to @canva
@canva via @cloudflare tearing apart the open web and #digitalgaslighting humans (note the help link). Why are systems designed so that only AI bots are capable of “proving” their humanity? (ensuring that #WordPress can reliably embed, but apparently it doesn’t matter)
80
the document is the database 🤔 #sgml
118
want to highlight your #wordpress #wordpressplayground based app at #wcus? send me a message!
1
176
Even spec-compliant #html parsers can "break." HTML cannot represent all possible (even invalid) DOM trees. #wordpress' #htmlapi speaks HTML and ensures full encapsulation and isolation when manipulating a document so this doesn't happen.
1
138
The #wordpress #htmlapi knows #html so you don't have to.
108
#wordpress #htmlapi knows how to convert #HTML into #XML/#XHTML (but you probably shouldn't do it!)
89
You can't parse #HTML with #XML. Because HTML can't be parsed by XML. XML is not a tool that can be used to correctly parse HTML. The use of XML will not allow you to consume HTML. XML is a tool that is insufficiently sophisticated. Have you tried using an HTML parser instead?
1
115
SGML lets me write post tags the way I think about them, and with a proper ENTITY and SHORTREF+USEMAP, it parses them structurally. #sgml
99
Replying to @dlh01
@dlh01 asked if the WordPress HTML API can extract the inner HTML from Paragraph elements. Here it skips comments and other syntax, then normalizes the inner content, removing duplicate attributes, odd quoting, overlapping tags, etc… gist.github.com/dmsnell/8e36…
38
When tests, linting, and CI reject work that fixes defects, it may be a good time to revaluate that system. Something is not right when defects are automatically enforced and preferred over fixes. #testsfailed
1
123
I didn't know…did you? fun fact: these are very different #html
1
94
As are these, but in a different way. #HTML
1
31
With WordPress 6.5 pre-release code, I wrote an HTML syntax highlighter for the terminal in 81 lines of code. There is not a single string index in the code. #wordpress #wordpress_html_api #html_api gist.github.com/dmsnell/4ba9…
1
2
3
512
In the process of developing the HTML API I've made a number of utilities using the HTML API to debug HTML and it's been a blast.
1
41
running `node.outerHTML = node.outerHTML` is not a no-op; it can break the page. #html
59
Replying to @Airbnb
@airbnb hosts can't run off-platform background checks; if you say you will violate their policy in a listing though, you can do whatever you want, according to support in a typo-laden and hasty reply. I didn't ask for a refund, but that's all they heard before cutting me off.
1
100
In this post we're going to explore the hidden "merge branch" that tracks a PR's development and see how GitHub uses that merge branch to provide diff views and previews of how the PR will impact the project once merged. fluffyandflakey.blog/2022/12…
1
349
In the WordPress block editor all block attributes are available structurally. This is in contrast to a common perception that they aren't. This is how we make them available. fluffyandflakey.blog/2022/12…