International PHP Conference
The Conference for PHP and Web Development

Hacking the DOM Object Hierarchy

Until the conference starts:
✓ Arduino Starter Kit or Amazon Echo Dot for free
✓ Group discount
✓ 2 in 1 conference special
Register now
Bis Konferenz­beginn:
✓ Arduino Starter Kit oder Amazon Echo Dot gratis
✓ Kollegenrabatt
✓ 2-in-1-Konferenzpaket
Jetzt anmelden
Until conference starts:
✓ 2-in-1 conference package
✓ Group discount
✓ Extra specials for freelancers
Register now
Bis Konferenzbeginn:
✓ 5-Tages-Special
✓ Kollegenrabatt
✓ Special Discount für Freelancer
Jetzt anmelden
Wednesday, October 27 2021
10:30 - 11:15
Forum 1

The PHP DOM extension provides an object hierarchy that allows you to manipulate an XML or HTML document in a safe and structured way. Some of that object hierarchy is even extensible.

During my work on the AMP PHP toolbox, I created a whole abstraction layer on top of the DOM hierarchy to both fix all sorts of shortcomings or bugs, and to add convenience functionality that makes the rest of the code cleaner or more resilient.

In this talk, I’ll cover how the extension mechanisms work, where they don’t actually work at all, and what we did to produce a somewhat coherent abstraction layer that lets you provide a specialized API to modify documents. 

Some of the use cases covered: 

– abstractions providing clean APIs 

– optimizations that cache state behind the scenes 

– stronger type-hinting – automatic transcoding to UTF-8 

– fixes and polyfills for libxml bugs and compat issues 

– convenient access to and automatic generation of expected elements

This Session belongs to the Diese Session gehört zum Programm vom MunichMünchen program. Take me to the program of . Hier geht es zum Programm von Berlin Berlin .

Take me to the full program of Zum vollständigen Programm von Munich München .

This Session Diese Session belongs to the gehört zum Programm von MunichMünchen program. Take me to the current program of . Hier geht es zum aktuellen Programm von Berlin Berlin or oder Munich München .

Stay tuned!

Behind the Tracks of IPC

PHP Core & Coding
Best practices & applications

General Web Development
Broader web development topics

DevOps & Continuous Delivery
Learn about DevOps and transform your development pipeline

Software Architecture
All about PHP frameworks, concepts &

Web Security
All about
web security

Software Quality
More about software testing tools &

Agile & Company Culture
Getting agile right is so important

Content Management Systems
Sessions on content management systems

#slideless (pure coding)
See how technology really works