Dennis Snell Profile
Dennis Snell

@dmsnell23

Followers
340
Following
483
Media
124
Statuses
460

Joined December 2013
Don't wanna be here? Send us removal request.
@swell_mania
かんた🌊SWELLマニア
11 months
ボタンブロック内のa要素にdownload属性を付けるなら普通にWP_HTML_Tag_Processor。プラグインは不要です😉
@deliciousconsul
めしうま診断士|中小企業診断士
11 months
今ぶち当たっている問題が、まさにこれです。 wordpress、意外と自由度が無い。 プラグイン「download manager」を試しています。
1
2
22
@dmsnell23
Dennis Snell
1 year
the document is the database 🤔 #sgml
0
0
0
@ryanwelcher
Ryan Welcher
1 year
Inspired by Dennis Snell's talk on #WordPress Playground at #WCUS2024, I put together a #VSCode extension to edit ReadMe files in the block editor.
9
9
64
@wplift
WPLift
1 year
🌊 "We're so used to WordPress development being a drop in a massive ocean, but with Playground, *we are* the ocean. We get to choose everything that goes out to our customers," said @dmsnell23, sharing unique opportunities with Playground at #WCUS. 💻✨ #WordPress #PlayGround
0
2
2
@dmsnell23
Dennis Snell
1 year
want to highlight your #wordpress #wordpressplayground based app at #wcus? send me a message!
0
0
1
@dmsnell23
Dennis Snell
1 year
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.
0
0
2
@dmsnell23
Dennis Snell
1 year
The #wordpress #htmlapi knows #html so you don't have to.
0
0
0
@dmsnell23
Dennis Snell
1 year
#wordpress #htmlapi knows how to convert #HTML into #XML/#XHTML (but you probably shouldn't do it!)
0
0
0
@dmsnell23
Dennis Snell
1 year
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?
0
0
1
@dmsnell23
Dennis Snell
1 year
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
0
0
0
@DjevaLoperka
Milana Cap
1 year
Did you know that HTML API is built from 0, specially for #WordPress, and there's no other framework or CMS that has anything similar? They all still use regex 🥲 There's also an interesting effect on performance 👯 I'll show you its magic in two weeks at @PHPSrbija #PHPSRB 🥰
1
1
5
@simo_m
Simone Maranzana 🦋
2 years
@fabiankaegy @nickmdiego 11/ In this hook, we'll create a custom class using the `wp_unique_id` function and apply it to our block using #WordPress relatively new `WP_HTML_Tag_Processor`. We'll then compose the style selector and add the icon markup using a regex.
2
1
2
@DjevaLoperka
Milana Cap
1 year
When learning about new features in code, I found that reading tests is, by far, the fastest route to understanding the usage and learning about available methods. Here are some utterly educational tests for WP_HTML_Tag_Processor by @dmsnell23 🤩 https://t.co/bPoGYCiDhV
github.com
WordPress Develop, Git-ified. Synced from git://develop.git.wordpress.org/, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please include a li...
1
5
27
@bissybissy
びしー on the Web💻💙💛
2 years
なお、ブランド名など翻訳させたくないテキストには、translate="no"をつけようネ💪 https://t.co/TKgFW9uyrc WPのブロックエディタでは、WP_HTML_Tag_Processor を使うと良きです😇 .notranslate クラスを付けたブロックには一律 translate=noを付ける処理が書けます💪 https://t.co/tdcUFl9ta6
Tweet card summary image
developer.mozilla.org
translate グローバル属性 は列挙型属性で、要素の翻訳可能な属性の値や Text 子ノードを、ページをローカライズする際に翻訳するべきか、あるいは変更せずにおくかを指定します。
1
1
2
@luisherranz
» Luis Herranz
2 years
Not many people realize the revolution that the HTML API represents for WordPress. @dmsnell23 is doing an amazing job explaining how this API works in his workshop right now at #WCEU. If you are not in this room now, make a note to see it later online 📝📺
3
7
36
@perezcarreno
Armando J. Perez-Carreno
2 years
If you want your own TOC block that dynamically creates a list of anchor links based on H2s, you can use the WP HTML Tag Processor in a custom block. Here's a basic example that skips any H2s that don't have an id (and it works inside templates, too 🤫)
2
1
5
@dmsnell23
Dennis Snell
2 years
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
0
0
1
@dmsnell23
Dennis Snell
2 years
0
0
6
@zugrina
Zoran Ugrina
2 years
In WP 6.5, the HTML API will be able to scan every token in an HTML document. This API is especially important for any programmatic modification of the content in the block era, and it's getting better and better with each version. Read more in the following post 👇
2
1
5