Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
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 (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
shinspiegel@mastodon.socialundefined

Jeferson 'Shin'

@shinspiegel@mastodon.social
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • I saw a recent discussion at work on how to approach code style for data attributes in #HTML
    shinspiegel@mastodon.socialundefined shinspiegel@mastodon.social

    @dev by the specs, which drives the browser parser

    Boolean properties are true when present, false when absent. They are also false when present with empty string. If they are true and should be XML valid they have the value of the name of the property as string.

    `<input disabled=“disabled”> //false`

    Data are always string, not a Bool, so when used needs to have a value, otherwise it will be “falsy” to JS (empty string)

    Links:
    https://html.spec.whatwg.org/

    Uncategorized html webdevelopment frontend javascript
  • 1 / 1
  • Login

  • Login or register to search.
  • First post
    Last post