Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. HTML might be getting a new type of tag, which… hasn't happened this millennium.

HTML might be getting a new type of tag, which… hasn't happened this millennium.

Scheduled Pinned Locked Moved Uncategorized
12 Posts 5 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • firefoxwebdevs@mastodon.socialF This user is from outside of this forum
    firefoxwebdevs@mastodon.socialF This user is from outside of this forum
    firefoxwebdevs@mastodon.social
    wrote last edited by
    #1

    HTML might be getting a new type of tag, which… hasn't happened this millennium. Here's the new syntax, and how it works.

    And here's the explainer on HTML patching https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

    ujay68@mastodon.worldU timsev@mastodon.socialT vrugtehagel@mastodon.socialV webreflection@mastodon.socialW 4 Replies Last reply
    1
    0
    • R relay@relay.infosec.exchange shared this topic
    • firefoxwebdevs@mastodon.socialF firefoxwebdevs@mastodon.social

      HTML might be getting a new type of tag, which… hasn't happened this millennium. Here's the new syntax, and how it works.

      And here's the explainer on HTML patching https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

      ujay68@mastodon.worldU This user is from outside of this forum
      ujay68@mastodon.worldU This user is from outside of this forum
      ujay68@mastodon.world
      wrote last edited by
      #2

      @firefoxwebdevs Please don’t borrow XML processing instruction syntax only halfway. Either use PI syntax exactly, or invent a clearly different one.

      firefoxwebdevs@mastodon.socialF 1 Reply Last reply
      0
      • firefoxwebdevs@mastodon.socialF firefoxwebdevs@mastodon.social

        HTML might be getting a new type of tag, which… hasn't happened this millennium. Here's the new syntax, and how it works.

        And here's the explainer on HTML patching https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

        timsev@mastodon.socialT This user is from outside of this forum
        timsev@mastodon.socialT This user is from outside of this forum
        timsev@mastodon.social
        wrote last edited by
        #3

        @firefoxwebdevs @jaffathecake How would out-of-order HTML patching work with a start/end processing instruction node pair with different parent elements? In the last example, what would happen to the closing em tag when HTML was patched?

        firefoxwebdevs@mastodon.socialF 1 Reply Last reply
        0
        • ujay68@mastodon.worldU ujay68@mastodon.world

          @firefoxwebdevs Please don’t borrow XML processing instruction syntax only halfway. Either use PI syntax exactly, or invent a clearly different one.

          firefoxwebdevs@mastodon.socialF This user is from outside of this forum
          firefoxwebdevs@mastodon.socialF This user is from outside of this forum
          firefoxwebdevs@mastodon.social
          wrote last edited by
          #4

          @ujay68 what's missing from the current handling? The ProcessingInstruction 'class' should get new capabilities as a result of this, such as proper attributes.

          vrugtehagel@mastodon.socialV 1 Reply Last reply
          0
          • timsev@mastodon.socialT timsev@mastodon.social

            @firefoxwebdevs @jaffathecake How would out-of-order HTML patching work with a start/end processing instruction node pair with different parent elements? In the last example, what would happen to the closing em tag when HTML was patched?

            firefoxwebdevs@mastodon.socialF This user is from outside of this forum
            firefoxwebdevs@mastodon.socialF This user is from outside of this forum
            firefoxwebdevs@mastodon.social
            wrote last edited by
            #5

            @timsev @jaffathecake currently, it wouldn't. The plan is, for that feature, to require the markers to be direct children of the parent with the marker attribute.

            1 Reply Last reply
            0
            • firefoxwebdevs@mastodon.socialF firefoxwebdevs@mastodon.social

              @ujay68 what's missing from the current handling? The ProcessingInstruction 'class' should get new capabilities as a result of this, such as proper attributes.

              vrugtehagel@mastodon.socialV This user is from outside of this forum
              vrugtehagel@mastodon.socialV This user is from outside of this forum
              vrugtehagel@mastodon.social
              wrote last edited by
              #6

              @firefoxwebdevs @ujay68 I think they meant being able to omit the question mark in "?>". Personally, I don't mind it, because HTML is not XML; for example, the slash in "<br/>" is also optional. The "<?" syntax seems to be chosen partly because it is backwards compatible, for which the closing "?" doesn't matter, since bogus comments end at the nearest ">". Either way, the closing question mark is allowed, so write it if you'd like! Jake even uses "?>" throughout the rest of the video 😉

              firefoxwebdevs@mastodon.socialF ujay68@mastodon.worldU 2 Replies Last reply
              0
              • firefoxwebdevs@mastodon.socialF firefoxwebdevs@mastodon.social

                HTML might be getting a new type of tag, which… hasn't happened this millennium. Here's the new syntax, and how it works.

                And here's the explainer on HTML patching https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

                vrugtehagel@mastodon.socialV This user is from outside of this forum
                vrugtehagel@mastodon.socialV This user is from outside of this forum
                vrugtehagel@mastodon.social
                wrote last edited by
                #7

                @firefoxwebdevs cool stuff, Jake! I'm wondering, though - if these nodes are represented in the DOM as PI nodes, assuming I don't go "through" element nodes (like you showed with the em) is there a benefit of using these processing instructions over spans for syntax highlighting? Is it that the PIs have a smaller memory footprint? Or is there specific optimizations that can be done?

                firefoxwebdevs@mastodon.socialF 1 Reply Last reply
                0
                • vrugtehagel@mastodon.socialV vrugtehagel@mastodon.social

                  @firefoxwebdevs cool stuff, Jake! I'm wondering, though - if these nodes are represented in the DOM as PI nodes, assuming I don't go "through" element nodes (like you showed with the em) is there a benefit of using these processing instructions over spans for syntax highlighting? Is it that the PIs have a smaller memory footprint? Or is there specific optimizations that can be done?

                  firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                  firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                  firefoxwebdevs@mastodon.social
                  wrote last edited by
                  #8

                  @vrugtehagel there are some specific optimisations. The styling of highlights is limited - you can't impact layout, so that's an optimisation path.

                  1 Reply Last reply
                  0
                  • vrugtehagel@mastodon.socialV vrugtehagel@mastodon.social

                    @firefoxwebdevs @ujay68 I think they meant being able to omit the question mark in "?>". Personally, I don't mind it, because HTML is not XML; for example, the slash in "<br/>" is also optional. The "<?" syntax seems to be chosen partly because it is backwards compatible, for which the closing "?" doesn't matter, since bogus comments end at the nearest ">". Either way, the closing question mark is allowed, so write it if you'd like! Jake even uses "?>" throughout the rest of the video 😉

                    firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                    firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                    firefoxwebdevs@mastodon.social
                    wrote last edited by
                    #9

                    @vrugtehagel @ujay68 haha yeah, the syntax highlighter I'm using didn't like the missing ? at the end. Well spotted!

                    1 Reply Last reply
                    0
                    • vrugtehagel@mastodon.socialV vrugtehagel@mastodon.social

                      @firefoxwebdevs @ujay68 I think they meant being able to omit the question mark in "?>". Personally, I don't mind it, because HTML is not XML; for example, the slash in "<br/>" is also optional. The "<?" syntax seems to be chosen partly because it is backwards compatible, for which the closing "?" doesn't matter, since bogus comments end at the nearest ">". Either way, the closing question mark is allowed, so write it if you'd like! Jake even uses "?>" throughout the rest of the video 😉

                      ujay68@mastodon.worldU This user is from outside of this forum
                      ujay68@mastodon.worldU This user is from outside of this forum
                      ujay68@mastodon.world
                      wrote last edited by
                      #10

                      @vrugtehagel @firefoxwebdevs Yes, this is what I meant. I’ve checked the HTML specification and the <? syntax is there, defined “bogus comment” (!) up to there next closing >. This is already different from XML, sadly.

                      firefoxwebdevs@mastodon.socialF 1 Reply Last reply
                      0
                      • ujay68@mastodon.worldU ujay68@mastodon.world

                        @vrugtehagel @firefoxwebdevs Yes, this is what I meant. I’ve checked the HTML specification and the <? syntax is there, defined “bogus comment” (!) up to there next closing >. This is already different from XML, sadly.

                        firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                        firefoxwebdevs@mastodon.socialF This user is from outside of this forum
                        firefoxwebdevs@mastodon.social
                        wrote last edited by
                        #11

                        @ujay68 @vrugtehagel right, but the goal is not to have all HTML and XML syntax be treated as the same, it's to have some subset that works the same in both.

                        1 Reply Last reply
                        0
                        • firefoxwebdevs@mastodon.socialF firefoxwebdevs@mastodon.social

                          HTML might be getting a new type of tag, which… hasn't happened this millennium. Here's the new syntax, and how it works.

                          And here's the explainer on HTML patching https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

                          webreflection@mastodon.socialW This user is from outside of this forum
                          webreflection@mastodon.socialW This user is from outside of this forum
                          webreflection@mastodon.social
                          wrote last edited by
                          #12

                          @firefoxwebdevs ouch … last example invalidates fragments requirements, although I agree combined with CSS is powerful indeed

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups