Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123706 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 203D61A009C for ; Thu, 20 Jun 2024 18:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718908122; bh=yD05o+4cHJlR+8EUJOtC7itKwUMX5EpVxSmxbU811ds=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GrZwW7/N4tEKg5LwbJ3jIFZmDjM+F94akaM33Y97wffRVfdRLUR9BoKlSpIdV/V4T VZ3sNHcIx+q/CqmjXk7GLGR8awYFO8Lv+R1FxE+B+wl3bvhcj5S3rnM3Rc6ZM0E1Ck fd8jJTORn1sKoYcVC8FY1ws98779o7XUpMTp7Zyfu2wUClyZ7prJ73ZjX9Dl9Lwj14 gdXo419+84q9WvzRjJyxK3tdQqr6asZ7pGf3P0x765xWHTjFMUeCC9p6tlpqpl2l1E pP1wTbsKfvTQYLojal2zdPyGpyeA8XpHQaoWjh0Ao7aoE132+eCJoCyh6QQZ+NnktI GXeUDZF6b1jNA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F1481808B2 for ; Thu, 20 Jun 2024 18:28:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 20 Jun 2024 18:28:38 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4230366ad7bso14155145e9.1 for ; Thu, 20 Jun 2024 11:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718908043; x=1719512843; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kLxbYLK3R2UyrH0OAreuhwWO3xrwSG9KrJZ/njTGfmI=; b=WUwKs1c7ZK/9njvqdzWLtInIUmeFvH4N/q7jIhdvAQBB+CFSG4LPEE5P3kLjHAT6F1 bMESy60uXRN91yin84A4pbtX0Ma4cSgcOcTncobQULYk7CywHV4snVy1ACY4Mp/AA5I8 IFkwdIJzagpTIZHif2N5AuJ0kp8T6Jish9V8bxz9RanR1FyvwS3pe517v3+PXxTdCCym YvT2p/D926q6aYOuJ07lpW6WzGki384cvoSLksQfwIpLf0MXQbHF1zjna1JU6G2JuVt0 X3JjqEsUd1RI/CastdvTQGB2byI+l5SIb6aUETYuWninuTYinB+PpRtlexUxKAqQpokA LcCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718908043; x=1719512843; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kLxbYLK3R2UyrH0OAreuhwWO3xrwSG9KrJZ/njTGfmI=; b=H3M/8obzH1g9JRVJ6oTzYz+KRj4+fCuBJVAw36zJEKXkVG/TilgleaniytAon1kr8m dJ7IObOlsAi4z6Y4Xt8S5rqWyMTbOtKtHfFLHeYNRkJlaF2J15jLH07A+q9m+JPRVxM4 5/t3Q76eHSfsPze4ArDtsW9qIg0Pujlsia3IyAk73IcORisORUrNMhed6dORnY2APR5v oBb8tz8BA+npu5CVhytdPdJoaJLjhmUGTqlDlwYsfhvLwanb9DpK6l9DvVc01r2e9J1F mDeKvE5F0IGNWqwxodgwvpn8/7vxMYEZc//bHNlQqkT8cVkIxXM7yZuR1v512eWU3pJ1 pC7Q== X-Gm-Message-State: AOJu0YxwefZqdKal3cVe00zf/REV+IGyYSNxP1mBUZTBLtNfB6mg/ZqO z72/AvuqAYujfbcohh9Mo5lxmMr8Pun0BZST8nvqcwg8Uv8WDWEm X-Google-Smtp-Source: AGHT+IHWdk+MycQOpTZvbaWn1fs3i5V9XBFXRQCb6IU2WEzt/n6Q4cdQuVIIrWuHnUUaGXno3l3OxQ== X-Received: by 2002:a05:600c:88a:b0:422:fb9a:90b3 with SMTP id 5b1f17b1804b1-42475296ba8mr60541305e9.32.1718908043420; Thu, 20 Jun 2024 11:27:23 -0700 (PDT) Received: from [192.168.0.103] (178-117-134-240.access.telenet.be. [178.117.134.240]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d2190desm34286695e9.48.2024.06.20.11.27.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jun 2024 11:27:23 -0700 (PDT) Message-ID: <7d69ef65-4c16-4479-9239-46b6df20cac3@gmail.com> Date: Thu, 20 Jun 2024 20:26:00 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Vote] New ext-dom features in PHP 8.4 To: Matthew Weier O'Phinney Cc: PHP internals References: <28a3990b-f0a4-4c4e-a14d-3eac3aa7fbce@gmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: dossche.niels@gmail.com (Niels Dossche) On 20/06/2024 16:28, Matthew Weier O'Phinney wrote: > > > On Mon, Jun 10, 2024 at 1:15 PM Niels Dossche > wrote: > > Hi internals > > I'm opening the vote of my RFC "New ext-dom features in PHP 8.4". > RFC link: https://wiki.php.net/rfc/dom_additions_84 > Voting runs until 24th of June 21:00 GMT+2. > > Kind regards > Niels > > > Question: why is `Dom\Document::$head` marked as readonly? The HTML spec defines the head property to be readonly: https://html.spec.whatwg.org/#document That's why $head is marked readonly. So I guess the question becomes "why does the HTML spec define it this way?" I couldn't find a conclusive answer to this, it looks like this has been read-only since HTML's early days... I thought about it but don't really see a technical reason why this is the case. If I had to take a guess I'd say it's for simplicity sake. > > -- > Matthew Weier O'Phinney > mweierophinney@gmail.com > https://mwop.net/ > he/him Kind regards Niels