Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024

Original comment by [email protected] on 21 Feb 2008 at 9:55

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Is this a true issue? According to W3C the id must be unique in the document, 
i.e.
two elements in the same document can't have the same id attribute.
(http://www.w3.org/TR/html401/struct/global.html#h-7.5.2)
/C#

Original comment by [email protected] on 26 Mar 2008 at 6:46

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Of course, but it's only a CSS problem.

On a website, you can have a page which contains this :
<div id="my_id" class="my_class"></div>

And another which contains this :
<div id="my_id" class="my_other_class"></div>

In your CSS file, shared with all your pages, if you write this :
#my_id{background:red;}
#my_id.my_class{background:green;}
#my_id.my_other_class{background:blue;}

The background will be red for the two pages with IE6, because you used twice 
and
directly the schema " #ID.CLASS ".

It's a little hard to explain with my poor english, sorry :)

Original comment by [email protected] on 26 Mar 2008 at 7:25

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Ah. My bad. Didn't think of that.
However, shouldn't this be a defect rather than an enhancement?

Original comment by [email protected] on 26 Mar 2008 at 8:03

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Changed back to "Defect".

Original comment by [email protected] on 26 Mar 2008 at 8:11

  • Added labels: Type-Defect
  • Removed labels: Type-Enhancement

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024

Original comment by [email protected] on 14 Feb 2010 at 3:08

  • Changed state: Accepted
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from ie7-js.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
I see this bug with both of the following rules, actually:

#unique.someClass and .firstClass.secondClass

The double-class selector is where I first saw it.

Original comment by [email protected] on 25 May 2011 at 8:58

from ie7-js.

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.