From 3a0050a591ba7d0ad85fa7b5854738a09301a9bb Mon Sep 17 00:00:00 2001 From: Nikolay Labinskiy Date: Mon, 8 Oct 2018 13:28:32 +0300 Subject: [PATCH 1/2] fix #310430: DomCrawler component selectButton() docs update --- components/dom_crawler.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 7355494fac1..47757c13149 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -324,9 +324,15 @@ Forms ~~~~~ Special treatment is also given to forms. A ``selectButton()`` method is -available on the Crawler which returns another Crawler that matches a button -(``input[type=submit]``, ``input[type=image]``, or a ``button``) with the -given text. This method is especially useful because you can use it to return +available on the Crawler which returns another Crawler that matches +``button`` and ``submit`` input tags. It uses several parts of the buttons to +find them: + +* The value attribute value; +* The id or alt attribute value for images; +* The id or name attribute value for button tags. + +This method is especially useful because you can use it to return a :class:`Symfony\\Component\\DomCrawler\\Form` object that represents the form that the button lives in:: From a910f523454a28c85544cc0bd8fb02a33eb3f906 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 9 Oct 2018 11:35:30 +0200 Subject: [PATCH 2/2] Reword --- components/dom_crawler.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 47757c13149..169681ae205 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -324,13 +324,11 @@ Forms ~~~~~ Special treatment is also given to forms. A ``selectButton()`` method is -available on the Crawler which returns another Crawler that matches -``button`` and ``submit`` input tags. It uses several parts of the buttons to -find them: - -* The value attribute value; -* The id or alt attribute value for images; -* The id or name attribute value for button tags. +available on the Crawler which returns another Crawler that matches ``