A toilet uses the physics concerning a siphon to do it's job but then refills slowly to refill the trap without a siphon reforming. This is not the case with all other traps though.
Yes, Home inspectors are pretty hit and miss on code violations. They are more likely to notice a missing smoke detector than a wiring problem in the attic.
I was surprised to learn that in the IPC Plumbing code, there is a chapter devoted specifically to vents. Chapter 9 has 19 sections of vent rules whereas Chapter 5 (Water Heaters) only has 5 sections. It seems that there is more code devoted specifically to vents than water heaters or just about anything else. If a home inspector was good, a vent problem would be noticeable and not too obscure however, my current house, which I bought in 2020, has 3 bathrooms and 2 kitchens with S Traps that the inspector overlooked.
In the last house I sold, there was never any mention of codes or building permits or anything like that during the sale. Of course this was in the very lenient state of California . . . .(kidding about the lenient part). But once I had a water heater professionally installed in that house and the the plumber pulled a permit for that. The inspector that came out noticed that I had converted the garage into a music recording studio. He pointed to the wall I built on the inside of the roll up door. I said the wall was really a partition and it could be removed easily. The inspector said, "Okay" and left.
I lose sleep over stuff like this all the time. I would see a therapist but my daughter is a therapist and she cried for 3 days after the election....I think I'll skip the therapist.
My point is this....plumbing vents are easily misunderstood. They have several purposes but the #1 purpose is usually overlooked, and that is to prevent a siphon from forming and sucking the water out of the trap it serves. All traps (with the exception of the toilet) need a vent to prevent a siphon and all traps, (including a toilet) needs a vent to aid in the flow of drainage.
AAV's are allowed by IPC code and by approval in UPC code areas. There is quite a controversy about AAV's. Here's what Plumbing and Mechanical Engineers magazine says about it.
Proponents of air admittance valves want them added to the UPC code, but they face resistance from those who remain unconvinced.
A recent survey among readers of PM Engineer magazine revealed that 74 percent would consider the use of AAVs for venting systems, while 52 percent said they would use AAVs anywhere the code would allow. Currently, AAVs that comply to American Society of Sanitary Engineering (ASSE) 1050, 1051 and NSF Standard 14 are approved in the International Plumbing codes (IPC/IRC). But the Uniform Plumbing Code (UPC) only allows them under Section 301.2, Alternate Materials and Methods
Since an ANSI standard for AAV usage already exists, the UPC stands in conflict with other ANSI standards as long as AAVs are prohibited. This is one argument AAV proponents are using in their call for AAVs to be admitted fully into the UPC.
Auto Vents are not approved by any code. The ones with a spring in them are not approved for houses, they are used in RV's because, I think, the movement of an RV down a road could cause a gravity type valve to open and close. A spring keeps it shut during road movement but this type is not allowed in a house.
An atmospheric (Traditional Vent) is ideal but according to Studor, an AAV may be better than an open air vent system. This is because (according to Studor) having an AAV close to the trap allows the AAV to sense negative pressure faster than an open air vent that is farther away. here's what Studor says;
The company's Air Admittance Valves (available in several models and capacities) open when the drain system senses negative pressure as low as 0.1 psi, but will remain closed at 0 psi or above.
This vent is designed to open when the plumbing fixture(s) it serves are draining, thus allowing air to enter the drain waste vent system.
The Studor vent AAV closes (by gravity alone, no springs), when there is no wastewater flowing through the system, thus preventing sewer gas from passing up the drain or vent into the building.
According to Studor "This style air admittance valve is not recognized as a mechanical vent in the International Plumbing Coder (IPC)." - op. cit.
Excerpting from the Studor manual:
Because AAVs are either at or very near the Point Of Need (PON) for air, and thanks to their reaction times, a system utilizing STUDOR AAVs is capable of balancing its internal pressure much more efficiently, without trap movement or depletion than open pipe vent systems.
This is particularly true in large commercial applications where the air needed to balance the system after each occurrence is drawn from far away points and thus require substantial time to reach the Point Of Need (PON). - op. cit.
There are some really good reasons to use an AAV.
A friend of mine who built a house in Alaska said he wanted as few roof penetrations as possible (because of harsh weather) so he has the one atmospheric vent that is required to handle positive pressures and all the rest are AAV. They can be in the attic (if possible) to exclude the possibility of flooding like you mentioned.
But in a kitchen island (for example) putting the AAV above the flood plane may not be possible...but it's Okay. They are approved for installation below the flood plane.
This shouldn't happen though, if the vent is operating normally, because the vent closes with positive pressure. No debris should get to the diaphragm. If waste water spews out of the AAV vent, it should be taken off by unscrewing it and inspected or replaced.
The approved AAV's these days only have to be 4" above the trap.
IPC 917.4 Location. Individual and branch-type air admittance
valves shall be located a minimum of 4 inches (102 mm) above
the horizontal branch drain or fixture drain being vented.
Here's one I installed in my own home.
View attachment 33744
The plumbing is confined to the rear of the cabinet allowing storage in the front. The little white thing under the disposal is a moisture sensor. The finished version of this installation includes a rubberized tray in the bottom of this cabinet to contain any water that "WILL" leak in here at some point in the future.
View attachment 33745
So, in summary, AAV's are allowed by most code. "S" Trap's are not allowed by any code and are dangerous. I would (and have) used an AAV to fix a vent problem. They are easy and work well.