Giter Club home page Giter Club logo

Comments (3)

j9t avatar j9t commented on May 24, 2024

Question from the sideline, how would “more” enhance semantics, or be clear(er)? It seems to be applicable to anything, which is typical for something that can represent everything, like a div or span.

For the problem itself, as element semantics have something permanent (a paragraph, heading, image, or other element doesn’t usually change form), and this seems to be about solving something temporary (what was “more” at time A doesn’t seem to be “more” anymore at time B), an element may not be a suitable choice, either. But that’s also a humble sideline read.

from html.

annevk avatar annevk commented on May 24, 2024

Please use the "New feature" template for this instead and address the various questions it raises.

from html.

Zhang-Junzhi avatar Zhang-Junzhi commented on May 24, 2024

Question from the sideline, how would “more” enhance semantics, or be clear(er)? It seems to be applicable to anything, which is typical for something that can represent everything, like a div or span.

For the problem itself, as element semantics have something permanent (a paragraph, heading, image, or other element doesn’t usually change form), and this seems to be about solving something temporary (what was “more” at time A doesn’t seem to be “more” anymore at time B), an element may not be a suitable choice, either. But that’s also a humble sideline read.

more is typically intended to be used in more specific elements like <ul>, <menu>, <article>. div and span is not primary concern.
Why is this? Because the content model limitation:
Consider in some cases, if we don't have <more> in <li>, since <li> can only be used inside <ul>, <ol> and <menu>. If we want to express the <ul> collapses some more items. We have to end up writing some code like this:

<ul>
    <li>...</li>
    <li>...</li>
    <li>...</li>
    <li class="clickable">more</li>
</ul>

You can see that semantically the last item is not of the same conceptual level as the others.

from html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.