CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 19:07:54 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:50:22 GMT
cache-control: max-age=2592000, public
expires: Mon, 10 Nov 2025 18:59:53 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98d098e62a163e6e
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=e_6DSXVWFmYrfRVEOku_D4RS3kyjKtwEcvUH_m2UlR4-1760209674-1.0.1.1-9ohSNG8XfHHb0a0KJfhougt07aFsM4OOGRjQsBg9bSqh.fk0rpqaSRFfSBiJqXxAPi5gmQ9q2ZE20KUD3lVENIJ3rQepj47mg9WZADWHseM; path=/; expires=Sat, 11-Oct-25 19:37:54 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98d0a499ec3020c5-BLR
alt-svc: h3=":443"; ma=86400
ORA-XQ-150-B: pushState() after changing state does not do what you want it to from Stephen Buxton on 2004-02-16 (public-qt-comments@w3.org from February 2004)
ORA-XQ-150-B: pushState() after changing state does not do what you want it to
- From: Stephen Buxton <Stephen.Buxton@oracle.com>
- Date: 16 Feb 04 13:31:19
- To: public-qt-comments@w3.org
- Cc:
- Message-Id: <200402162131.i1GLVJb01421@rgmgw4.us.oracle.com>
SECTION A.2.2: lexical rules DEFAULT state, on input "(:", has transition to EXPR_COMMENT followed by pushState(). I interpret this to mean the current state is changed from DEFAULT to EXPR-COMMENT, and then the current state (now EXPR_COMMENT) is pushed on top of the stack. We continue executing in EXPR_COMMENT state. On input ":)", the transition is popState(), which seemingly means that the EXPR_COMMENT state that is on the stack is popped and becomes the current state. This looks wrong. Don't we want to go to whatever state we were in before the comment? In that case, shouldn't the transition in DEFAULT state on input "(:" be pushState(DEFAULT) followed by entering EXPR_COMMENT state? Based on this example, I question whether any of the transitions should have pushState() as the second step. It makes more sense to do pushState() before changing the current state rather than after. This whole question of order of actions can be avoided by always pushing an explicit state. Each table knows what state is the current state, so you can just push that state explicitly when you want to push the pre-existing current state. - Steve B.
Received on Monday, 16 February 2004 16:31:22 UTC