W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2015

Clarification of issue in User Timing spec

From: Eli Perelman <eperelman@mozilla.com>
Date: Wed, 28 Jan 2015 11:33:32 -0600
Message-ID: <CABvvSwdVhzvxHeJCuNnof9HmRLiuheD6ag70g_=CpKMr85Ng5w@mail.gmail.com>
To: public-web-perf <public-web-perf@w3.org>
In the *Exceptions* section of the User Timing spec for the mark method, it

"Throws a SYNTAX_ERR exception if the markName argument is the same name as
an attribute in the PerformanceTiming interface."

In Gecko we implemented bug 1047878 [1] out-of-spec and added `toJSON` to
the PerformanceTiming interface to get a JSON version of the timing
attributes. Following this reasoning, then `toJSON` being a
PerformanceTiming attribute may need to throw a SYNTAX_ERR when used as a
performance marker name:


So we need some clarification of the spec to determine whether all
attributes of the PerformanceTiming interface should throw if used as
marker names, or only those specifically defined by the spec.


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=760851

Eli Perelman
Received on Wednesday, 28 January 2015 17:34:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:01:27 UTC