W3C home > Mailing lists > Public > www-svg@w3.org > May 2012

Re: About "d" attribute

From: 向雅 <fyaoxy@gmail.com>
Date: Sat, 12 May 2012 00:00:43 +0800
Message-ID: <CAJH9WWQHKVH78jEOyHh9ewB_uoMeKOgdmgG4CX0SuUg-a+4tMA@mail.gmail.com>
To: Rick <graham.rick@gmail.com>
Cc: www-svg@w3.org
OKay, :)
I just have an idea at the moment, web search it, google, bing...
I think, you check out the result of search "SVG empty path".
Could you tell something about the result?

In the first, I got 2 or 3 items, there have some bugs when those
programm processing svg empty path.
IMO, seems it take the world some trouble, just like USA Pst:)

I guess, the D3.js project, you know it. One of D3 core concept is the
selection.
IMO again, it's a better way to handle some data binding things.
>From the view of D3, I cannot see any useful about the empty path.

To Olaf: your message, I must check out in details by slow:) then make
a response:)

致敬
向雅


2012/5/11 Rick <graham.rick@gmail.com>:
>
>
> On Fri, May 11, 2012 at 10:42 AM, 向雅 <fyaoxy@gmail.com> wrote:
>>
>>
>> Does someone really think a placeholder useful in a dynamic env?
>
>
> Absolutely.
>
>>
>>
>> 致敬
>> 向雅
>>
>>
>> 2012/5/11 Rick <graham.rick@gmail.com>:
>> >
>> >
>> > On Thu, May 10, 2012 at 9:02 PM, 向雅 <fyaoxy@gmail.com> wrote:
>> >>
>> >> Hi,
>> >> Just notice this:
>> >> 8.3.9 The grammar for path data
>> >> Note that the BNF allows the path ‘d’ attribute to be empty. This is
>> >> not an error, instead it disables rendering of the path.
>> >>
>> >> Real strange!
>> >> Reason:
>> >> if d is empty, there is  no path at all. so no render, so disable
>> >> what?  Bad logic?
>> >> Who will write empty path node? Some one eat enough, nothint to do?
>> >
>> >
>> > People tend to forget that SVG is dynamic.
>> >
>> > One could come up with use cases for a path that from time to time has
>> > no
>> > geometry.
>> >
>> > A path is a series of segments, and zero segments has properly been
>> > accepted
>> > as legal.
>> >
>> > You could argue that it should be an error to have a path without
>> > definition
>> > and that the proper method would be to use display='none'.  You could
>> > argue
>> > that in a static language a path with no nodes this is nonsensical. SVG
>> > is
>> > not a static geometry format, it is a dynamic geometry language.  For a
>> > path
>> > to have a state with zero nodes is a perfectly valid concept.
>> >
>> >>
>> >>
>> >> Regards
>> >> Qinxian
>> >>
>> >
>> >
>> >
>> > --
>> > Those who can make you believe absurdities can make you commit
>> > atrocities.
>> >  - Voltaire
>
>
>
>
> --
> Those who can make you believe absurdities can make you commit atrocities.
>  - Voltaire
Received on Friday, 11 May 2012 16:01:37 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:51 GMT