PHP 8.4 adds HTML 5 support

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • Today we take a look at the new DOM features coming to PHP 8.4
    Read the full RFC: wiki.php.net/r...
    #php #whatsnew #webdev
  • РазвлеченияРазвлечения

Комментарии • 31

  • @abbottabbott1120
    @abbottabbott1120 Месяц назад +23

    Never thought RFC react videos would be a thing but I like it.

  • @WalidsTube
    @WalidsTube Месяц назад +5

    funny thing: don't know if it's just for the video (for us to follow), but you seem to read online text exactly like I do: by selecting the portion of the text I'm reading 😆. thanks for the vid!

    • @phpannotated
      @phpannotated  Месяц назад +4

      No this is something I do by habit, and it drives my wife crazy when I'm sitting next to her on my laptop, reading and clicking 😅

    • @WalidsTube
      @WalidsTube Месяц назад

      @@phpannotated it frustrates me when I read a text in a screen capture and I can't select it. Even watching this video I accidentally paused it a couple of time trying the select the text on the screen 😂

    • @doriomer
      @doriomer Месяц назад

      @@phpannotated
      i can't stay focus whithout selecting the text, this is the reason why i hate working with docs on my mobile phone.

  • @patrick-dev
    @patrick-dev Месяц назад +2

    Thanks to Nielsdos! He should be one of the foundation developers. He's done alot of work

  • @Brad_Script
    @Brad_Script Месяц назад +1

    shared objects are like dlls, you load it once and all process should use the same one (unless you tell them to load a different one from a different path)

  • @SXsoft99
    @SXsoft99 Месяц назад +4

    sooo i will finally be able to generate PDF files easier

  • @rhinni
    @rhinni Месяц назад +1

    Creating the aliases just feels like a step towards deprecating the current classes so in the future the global namespaces can be dropped. Would prefer temp mess without breaking changes if that means future improvements

  • @medilies
    @medilies Месяц назад +1

    Until now. No PHP library can clean HTML input from XSS without destroying the original look or burdenning the scalability with lot of config.

  • @Winnetou17
    @Winnetou17 Месяц назад +2

    The DOM\Document should be DOM\HTML4Document instead, if they actually want a sane forward-looking namespace that won't have to always specify its history to avoid confusion.

    • @phpannotated
      @phpannotated  Месяц назад +1

      Yeah :/ I still need to read through the followup RFCs, hopefully there'll be some finetuning

  • @phpannotated
    @phpannotated  Месяц назад +2

    LEXBOAR

  • @CaptainFalcon92
    @CaptainFalcon92 Месяц назад +1

    Running a quick Node child process has proven to be very fast and efficient when it come to manipulating dom. There are so many libraries i feel like this practice has taken over.
    I understand the appeal for js/node-less parsing in a php context. Yet it will probably not achieve the same effectiveness. Curious to test it.

    • @phpannotated
      @phpannotated  Месяц назад +2

      Interesting! I guess the JS ecosystem had a lot of incentive to optimise DOM related operations

  • @One.manuel
    @One.manuel Месяц назад +2

    You had to Google kilobytes.....

    • @phpannotated
      @phpannotated  Месяц назад +1

      KiB is Kibibyte, not kilobyte. KiB is 1024 bytes, so converting to MB isn't as trivial

    • @One.manuel
      @One.manuel Месяц назад +3

      @@phpannotated Bro kb is 1024 bytes. 1 byte 8 bits. 1024 kb 1 mb. Kib vs kilobyte is a psyop. It's the same. Every OS uses 1024

  • @barneylaurance1865
    @barneylaurance1865 Месяц назад +4

    Will PHP 6 have HTML 6 support?

  • @cykonetic
    @cykonetic Месяц назад

    because so many browsers are completely HTML5 compliant.

  • @manishgautam2424
    @manishgautam2424 Месяц назад

    any http3 based or http2 based php video , as i wish gRPC or Quac

  • @mavvdeus
    @mavvdeus Месяц назад +4

    Thanks for this video. But for my taste it is a bit too long and indepth.

    • @phpannotated
      @phpannotated  Месяц назад +1

      Fair enough! Thanks for letting me know :)

    • @brunoggdev6305
      @brunoggdev6305 Месяц назад

      Now that's constructive feedback. Good job man

    • @netol07
      @netol07 Месяц назад

      @@brunoggdev6305 It still makes sense, though. Whoever is interested on viewing this can read the RFC already.

  • @Nodsaibot
    @Nodsaibot 2 дня назад

    whoever wants this baked in PHP has skill issues tbh

  • @doriomer
    @doriomer Месяц назад

    im using laravel and react js why would i be bother with this? what am i missing?

    • @MaximillianHeth
      @MaximillianHeth Месяц назад +4

      Maybe nothing for now, but any improvements that allow you to do DOM manipulation in vanilla PHP without having to tap into JS are worth being aware of at least. As far as Laravel goes, you might see these features integrated into Livewire at a certain point.